#include <iostream>
#include "employee.h"
#include <string.h>

using namespace MH;
using namespace std;

Employee::Employee(int m_nid,string _m_strName,bool _m_bGender,int m_nAge):m_nid(m_nid),m_nAge(m_nAge)
{
	m_strName.assign(_m_strName);
	m_bGender = _m_bGender;
}

/*Employee::Employee(Employee& employee)
{
	m_strName.assign(employee.m_strName);
	m_bGender = employee.m_bGender;
	m_nid = employee.m_nid;
	m_nAge = employee.m_nAge;
}

Employee& Employee::operator = (Employee& employee)
{
	if(this!=&employee)
	{
		m_strName.assign(employee.m_strName);
		m_bGender = employee.m_bGender;
		m_nid = employee.m_nid;
		m_nAge = employee.m_nAge;
	}
	return* this;
	
}*/


Employee::~Employee(void)
{

}

void Employee::set_employee(int _m_nid,string _m_strName,bool _m_bGender,int _m_nAge)
{
	m_strName.assign(_m_strName);
	m_bGender = _m_bGender;	
	m_nid = _m_nid;
	m_nAge = _m_nAge;

}

void Employee::get_employee(void)
{
	cout << m_nid << "   " << m_strName << "   " << m_bGender << "   " 
	     << m_nAge << endl;
}

string Employee::getname(void)
{
	return m_strName;
}
int Employee::getid(void)
{
	return m_nid;
}
